home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 November: Tool Chest / Dev.CD Nov 98 TC.toast / Sample Code / Snippets / Sound / Speech Recognition sample / _headers / Language.h next >
Encoding:
C/C++ Source or Header  |  1996-11-15  |  1.1 KB  |  42 lines  |  [TEXT/CWIE]

  1. #ifndef __LANGUAGE__
  2. #define __LANGUAGE__
  3.  
  4. #include <Resources.h>
  5. #include <Speech.h>
  6. #include <String.h>
  7. #include <TextUtils.h>
  8.  
  9. #ifndef __STRUCT__
  10. #include "Struct.h"
  11. #endif
  12.  
  13. #ifndef __SPEAKINGERRORS__
  14. #include "Speaking_Errors.h"
  15. #endif
  16.  
  17. #define kBaseResID        128
  18. #define kLanguageRes    'STR#'
  19. #define kTREEType        'LANG'
  20.  
  21. OSErr        MakeNewLanguage            (SpeechInfoPtr theSpeechInfo);
  22. OSErr        AddStringsToLanguage    (SpeechInfoPtr theSpeechInfo,
  23.                                     LanguageModelListPtr currentLang,
  24.                                     short resID);
  25. OSErr        ReadInLanguages            (SpeechInfoPtr theSpeechInfo);
  26. OSErr        GetTREERes                (TREEResourcePtr *TREEResPtr,
  27.                                     short resID,
  28.                                     short index,
  29.                                     short *onlySubPath);
  30. OSErr        RegisterCommand            (TREEResourcePtr theTREEResPtr,
  31.                                     CommandPtr *theCommand);
  32. OSErr        GetFlagsFromTREE        (long *theFlags,
  33.                                     TREEResourcePtr theTREEResPtr);
  34. OSErr        GetTypeFromTREE            (OSType *theType,
  35.                                     TREEResourcePtr theTREEResPtr);
  36. OSErr        GetIDFromTREE            (long *theID,
  37.                                     TREEResourcePtr theTREEResPtr);
  38. OSErr        GetStringFromTREE        (Str255 theString,
  39.                                     TREEResourcePtr theTREEResPtr);
  40.  
  41. #endif
  42.